package com.zhaoziqian.service;

import com.zhaoziqian.model.SDKResponse;
import org.hyperledger.fabric.sdk.exception.CryptoException;
import org.hyperledger.fabric.sdk.exception.InvalidArgumentException;

import java.lang.reflect.InvocationTargetException;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/5/28  下午10:52
 * 功能：
 */
public interface Invocation {
    SDKResponse invokeChainCode(String ordererOrg, String ordererId, String peerId, String org, String chainCodeId, String chainCodeVersion, String function, String[] args, String channelName) throws Exception;

    SDKResponse queryChainCode(String ordererOrg, String ordererId, String peerId, String org, String chainCodeId, String chainCodeVersion, String function, String[] args, String channelName) throws Exception;
}
